<?php

	$strRel = '../../../';
	include($strRel . 'config.php');
//	$blogid = intRequestVar('bid');
//	echo 'blogid='.$blogid;
//	global $manager;
	$tPlug =& $manager->getPlugin('NP_CategoryEX');
//	$tree  = $tPlug->getChildrenTree(3,1);
//	echo '/*';print_r($tree);echo'*/';
	$tree  = $tPlug->getParentsTree(9,1,4);
	echo '/*';print_r($tree);echo'*/';
//	$trush = array_shift($tree);
//	foreach ($tree as $value) {
//		extract ($value);
//		$self = $value['node'];
//		$node = $value['pnode'];
//		$name = $value['cname'];
//		$link = $value['link'];
//		$desc = $value['cdesc'];
//		echo 'JSTree.add(' . $pnode . ',' . $node . ",'" . $name . "','" . $desc . "');\n";
//	}
//	echo "document.write(" . $objectId . ");\n";

